package com.cty.C_SortAlgorithms.H_RadixSort;

import com.cty.C_SortAlgorithms.G_HeapSort.HeapArray;
import com.cty.F_common.DataItem;

/**
 * @Auther: cty
 * @Date: 2020/6/17 9:27
 * @Description:  测试堆排序
 * @version: 1.0
 */
public class RadixSortApp {
    public static void main(String[] args) {
        RadixSort radixSort = new RadixSort(100);

        long key;
        for(int i=0; i<10; i++){
            key = (long) (Math.random()*99);
            radixSort.insert(new DataItem(key));
        }
        radixSort.displayArray();

        radixSort.radixSort(2);
        radixSort.displayArray();
    }  // end main()
}  // end BubbleSortApp{}

/**
 * 1 81 81 10 85 42 74 66 93 61
 * 1 10 42 61 66 74 81 81 85 93
 */
